<html>
    <head>
        <link href="<?php echo _get_cfg_path('admin_css')?>base.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo _get_cfg_path('admin_css')?>common.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo _get_cfg_path('admin_css')?>main.css" rel="stylesheet">
        <link href="<?php echo _get_cfg_path('admin_css')?>right.css" rel="stylesheet">
    </head>
<body>
<div class="right_con common adduser">
	<a href="/admin/style" class="topBtn">返回列表</a>
	<?php echo validation_errors('<div class="valid_error">', '</div>');?>
	<form action="/admin/style/add<?php if( !empty($info['id']) ) echo '?id='. _get_key_val( $info['id'] ); ?>" method="post">
		<table class="addTable">
			<tbody>
		        <tr>
		            <td height="25" align="right"><span class="tips">名称*</span> ：</td>
		            <td align="left" class="padL10"><input type="text" name="title" value="<?php if( !empty($info['name']) ) echo $info['name']; ?>" /></td>
		        </tr>
                        <tr>
                           <td height="25" align="right"><span class="tips">分类名称*</span> ：</td>
                           <td align="left" class="padL10">
                               <select name="style">
                                <?php foreach ($style as $k=>$v) :?>
                                   <option value="<?php echo $k?>" <?php if(!empty($info) && ($info['s_style'] == $k)) {echo 'selected';}?>><?php echo $v?></option>    
                                <?php endforeach;?>
                               </select>
                           </td>
                        </tr>
		         <tr>
		            <td height="25" align="right"><span class="tips">*</span>显示：</td>
		            <td align="left" class="padL10">
		            	<input type="radio" name="display" value="1" <?php if( !empty($info['is_show']) && $info['is_show']==1 ) echo ' checked' ?> />显示
                        <input type="radio" name="display" value="0" <?php if(empty($info['is_show'])) echo ' checked' ?> />不显示
		            </td>
		        </tr>
				<tr>
		            <td></td>
		            <td class="padL10"><input type="submit" class="sub" value="提交"></td>
		        </tr>
		    </tbody>
		</table>
	</form>
</div>
<script type="text/javascript" src="<?php echo _get_cfg_path('lib')?>My97DatePicker/WdatePicker.js"></script>

</body>
</html>
